Lecture 15

Networking and Communications

Here I've developed the advaced display for my final year project i.e. mobile bathroom. This display I've used to diplay what's the amount of water left in the bucket.

There are in total two nodes I've used, one is water level sensor and other is lcd display board. Both the boards are communicating with each other with rs232 protcol.

This protocol sends the data serially.


Water level sensor send a byte of data when water level chages from one to another. This data is analysed by the lcd board which will take care of displaying character on the

16x2 lcd module. Water level '1' to '4' character to the LCD board and it displays the percentage of the water left.


Network will work as follows,


--> '1' => 25%

--> '2' => 50%

--> '3' => 75%

--> '4' => 100%


Multi nod connections (Nod-1 and Nod-2)

Nod-1 is my water level sensor with 4 Led's


Nod-2 is using attiny44 which will connect the LCD in parallel mode and will provide the serial interface to send data to display it on LCD.




In Attiny 44 I've budgeted the pins as follows.

Attiny 44 Pins Used for

PA0 to PA5 = LCD data and control signals

PB2 and PB3 = Communication with host

Connections of LCD Boards = Power sourse -> fab isp -> Lcd board -> water level sensor


Water level 50%




Water level 75%




Water level 100%




Working video


Download the files from Belove link


Arduino code
Processing code
Serial proccessing code
Button program